wayland: Avoid running stale cursor animation timeouts
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Sep 2015 10:21:36 +0000 (12:21 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Sep 2015 17:19:49 +0000 (19:19 +0200)
commit603ea3b3e7750e129078b90bdb77ad6eb592d59e
treeb9bc8bfc6c62dcd0bcc8af5da15a00c884436239
parent63e255e7b5326888e83bf84f1147012938c81000
wayland: Avoid running stale cursor animation timeouts

gdk_wayland_device_update_window_cursor() is inconsistently returning
TRUE/FALSE, despite the timeout being always replaced for new cursor
frames. This could end up in these timeouts being "leaked" and running
as long as the window has an animated cursor.

Fix this by making it really sure we return G_SOURCE_REMOVE, although
now we keep track of animation delays, so the timeout will be reused
for constant time animations.
gdk/wayland/gdkdevice-wayland.c